home *** CD-ROM | disk | FTP | other *** search
- package tetris;
-
- import javax.microedition.lcdui.Display;
- import javax.microedition.midlet.MIDlet;
-
- public class TetrisMIDlet extends MIDlet {
- static TetrisMIDlet instance;
- static MainMenu mainMenu;
- private Splash splash = new Splash();
- static Options options;
- static GameScreen gameScreen;
- static HighScores highScores;
-
- public TetrisMIDlet() {
- instance = this;
- mainMenu = new MainMenu();
- options = new Options();
- gameScreen = new GameScreen();
- highScores = new HighScores();
- }
-
- public void startApp() {
- Display.getDisplay(this).setCurrent(this.splash);
- }
-
- public void pauseApp() {
- }
-
- public void destroyApp(boolean unconditional) {
- }
-
- public static void quitApp() {
- instance.destroyApp(true);
- instance.notifyDestroyed();
- instance = null;
- }
- }
-